public class User
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private Task |
currentTask |
private Inbox |
inbox |
private java.lang.String |
name |
private Profile |
profile |
private java.util.ArrayList<Task> |
taskList |
Constructor and Description |
---|
User(java.lang.String name,
java.lang.String username,
java.lang.String password)
Instantiate a new User object
|
Modifier and Type | Method and Description |
---|---|
void |
alertTaskFinished(Task t)
Alert the user that one of his tasks has been finished
|
void |
createTask(Task t)
Add a task to your task list
|
void |
finishTask()
Alert another user that you have finished their Task
|
void |
performTask(Task t)
Accept current Task for running
|
void |
removeTask(Task t)
Remove a completed or deleted Task from the user's task list
|
private java.lang.String name
private Task currentTask
private Inbox inbox
private java.util.ArrayList<Task> taskList
private Profile profile
public User(java.lang.String name, java.lang.String username, java.lang.String password)
name
- the full name of the userusername
- the username of the userpassword
- the user's passwordpublic void createTask(Task t)
t
- the task to add to the task listpublic void removeTask(Task t)
t
- the task to be removedpublic void alertTaskFinished(Task t)
t
- the task that has been finishedpublic void performTask(Task t)
t
- the Task to be ranpublic void finishTask()